package mightyMarket.base;
import java.util.*;
import java.io.*;

//Class Market
public class Market
{
	//Attributes:
	String name;
	List<Article> articles;
	//	BufferedImage logo = null;
	//	gps position

	
	//Constructor Market:
	public Market (String name)
	{
		this.name = name;
		articles = new ArrayList<Article>();
		
		
		
	}
	
	//Market Methods
	
	//Method: addArticles
	
	public void addArticle(Article article)
	{
		if (!articles.contains(article))
		{
		articles.add(article);
		}
		
	}
	
	//Method getName
	
	public String getName()
	{
	 return name;
	}
	
	
}

